package dao

import (
	"cloudRestaurant/model"
	"cloudRestaurant/tool"
	"log"
)

type MemberDao struct {
	*tool.Orm
}

func (md *MemberDao)InsertCode(sms model.SmsCode)int64{
	result,err := md.InsertOne(&sms)
	if err != nil{
		log.Fatal(err.Error())
	}
	return result
}